package priv.pfz.raft.verify.cmd;

import lombok.extern.slf4j.Slf4j;
import priv.pfz.raft.peer.ClusterHolder;

import java.util.List;

/**
 * @author pengfangzhou
 * @date 2022/2/7 23:55
 */
@Slf4j
public class StopPeerCmd implements CmdExecutor {
    @Override
    public void execute(List<String> params) {
        for (String peer : params) {
            ClusterHolder.peerMap.get(peer).stop();
        }
    }
}
